import useDataApi from '@/hooks/useDataApi/useDataApi';
import {
    getLaunchTaskList,
    getExecuteTaskList,
    getParticipateTaskList,
    getNeedAuditTaskList,
    getIsAuditTaskList,
    getPendingAcceptanceTaskList,
    getAcceptedTaskList,
    getEstimationlaunch,
    getEstimationlaunched,
    getEstimationnotrequired,
    getEstimatedTaskList
} from '../services';

export const useLaunchTaskList = query => useDataApi(getLaunchTaskList, query);

export const useExecuteTaskList = query => useDataApi(getExecuteTaskList, query);

export const useParticipateTaskList = query => useDataApi(getParticipateTaskList, query);

export const useNeedAuditTaskList = query => useDataApi(getNeedAuditTaskList, query);

export const useIsAuditTaskList = query => useDataApi(getIsAuditTaskList, query);

export const usePendingAcceptanceTaskList = query => useDataApi(getPendingAcceptanceTaskList, query);

export const useAcceptedTaskList = query => useDataApi(getAcceptedTaskList, query);

export const useAssessmentTaskListLaunch = query => useDataApi(getEstimationlaunch, query);

export const useAssessmentTaskListLaunched = query => useDataApi(getEstimationlaunched, query);

export const useAssessmentTaskListnotrequired = query => useDataApi(getEstimationnotrequired, query);

export const useEstimatedTaskList = query => useDataApi(getEstimatedTaskList, query);
